home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / sbin / update-grub < prev    next >
Encoding:
Text File  |  2007-04-10  |  616 b   |  26 lines

  1. #!/bin/sh
  2. #
  3. # Wrapper to warn user about kernel-img.conf move
  4. #
  5.  
  6. if grep -q '  */sbin/update-grub$' /etc/kernel-img.conf 2> /dev/null ; then
  7.     cat >&2 <<EOF
  8. Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1]
  9. file and follow its instructions.
  10.  
  11.  1. /usr/share/doc/grub/NEWS.Debian.gz
  12.  
  13.  
  14. EOF
  15. fi
  16.  
  17. if [ -x /usr/sbin/update-grub ]; then
  18.     if [ "$0" = "/sbin/update-grub" ]; then
  19.         echo "You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!" >&2
  20.         echo >&2
  21.     fi
  22.     exec /usr/sbin/update-grub "$@"
  23. else
  24.     echo "Your /usr is broken, please fix it before call this wrapper!" >&2
  25. fi
  26.